package com.example.articleservice.entity;

import java.io.Serial;
import java.util.Date;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * (Article)表实体类
 *
 * @author makejava
 * @since 2024-03-24 15:24:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("article")
public class Article implements Serializable {
    @Serial
    private static final long serialVersionUID = 2413240516987536691L;
    //主键@TableId
    @TableId(value = "aid", type = IdType.AUTO)
    private Long aid;

    //标题
    private String title;
    //正文
    private String content;
    //创建时间
    private Date createtime;
    //修改时间
    private Date updatetime;
    //作者
    private Long uid;



}

